﻿using System;

namespace Alex.Library.Log.Configuration
{
    /// <summary>
    /// 代码跟踪日志元素
    /// </summary>
    public sealed class TraceLoggerElement : LoggerElement
    {
        /// <summary>
        /// 获取日志对象
        /// </summary>
        /// <returns></returns>
        public override ILogger GetLogger()
        {
            TraceLogger tl = new TraceLogger();
            tl.FlushLevel = this.FlushLevel.Value;
            tl.Template = this.Template.GetTemplate();
            return tl;
        }
    }
}
